package com.hao1st.common.interceptor;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerInterceptor;

/**
 * 默认拦截器
 */
public class DefaultInterceptor implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        // 临时代码，操作一下request，有助于session的保存
        request.getSession();
        return HandlerInterceptor.super.preHandle(request, response, handler);
    }
}
